/*********************************************************************************
Organization 					: 				Georgia Institute of Technology
  
Institute 						:				Cognitive Computing Group(CCL)
 
Authors							: 				Sooraj Bhatt 
 												
Class							:				RunBot 
 
Function						: 				Provides a Launcher for Running the 
												the basic Wargus agent
****************************************************************************/
package base;


/**
 * This is a generic bot launcher for ABL-Wargus agents.  Currently
 * only handles one agent but can easily be changed to accomodate
 * multiple agents if needed.
 *
 * @author sooraj
 */ 
public class RunBot {
    public static void main(final String[] args) {
    	
    	System.out.println("1111111111RunBot started...");
    	
        try {
        	ProxyBot pb = null;
		    if (args.length > 1 && args[1].equals("-debug")) {
		    	pb = new ProxyBot("localhost", true);
		    	new Thread(pb).start();
		    } else {
		    	pb = new ProxyBot("localhost", false);
	            new Thread(pb).start();
		    }
		    //Wargusmain wm = new Wargusmain(pb);
		    //new Thread(wm).start();
		    PheromoneMain pheromoneMain = new PheromoneMain(pb);
            new Thread(pheromoneMain).start();
            
        }
        catch (Throwable t) {
            t.printStackTrace();
            System.exit(1);
        }
       
    }
}